package com.example.doer.reading;

import android.content.Intent;
import android.os.Bundle;

import com.ab.activity.AbActivity;

import static android.os.SystemClock.sleep;

public class WelcomeActivity extends AbActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setAbContentView(R.layout.activity_welcome);
        new Thread(new Runnable() {
            @Override
            public void run() {
                sleep(2000);
                runOnUiThread(new Runnable() {
                    @Override
                    public void run() {
                        startActivity(new Intent(WelcomeActivity.this,MainActivity.class));
                        WelcomeActivity.this.finish();
                    }
                });
            }
        }).start();
    }
}
